class MyApp {
    public constructor() {
        console.log("Start MyApp")
        App.ResourceUtils.loadGroup("game_preload", this.onResourceLoadComplete, this.onResourceLoadProgress, this)

    }
    private onResourceLoadComplete(param1: any, param2: any): void {
        //App.SceneManager.runScene(SceneConsts.FartMonkey);
        //App.SceneManager.runScene(SceneConsts.TEST)
        console.log("onResourceLoadComplete")
        App.SceneManager.runScene(SceneConsts.Tarzan);
    }
    private onResourceLoadProgress(itemsLoaded: number, itemsTotal: number): void {
        //App.ControllerManager.applyFunc(ControllerConsts.Loading, LoadingConst.SetProgress, itemsLoaded, itemsTotal);
        console.log("onResourceLoadProgress:" + itemsLoaded + "/" + itemsTotal)
    }
}